package com.demo.hotel_book.controller;

import com.demo.hotel_book.mapper.OrderZoneMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class JumpController {
    @Autowired
    OrderZoneMapper orderZoneMapper;
//        @RequestMapping("/test")
//        public String goTest(){
//            return "test";
//        }

    @RequestMapping("/map")
    public String map(HttpSession session) {
        session.setAttribute("hotels",orderZoneMapper.listHotel());
        return "map";
    }

}
